package com.probiz.estore.system.dao;

import java.util.List;

import com.probiz.estore.common.model.system.AppRole;
import com.probiz.estore.core.dao.GenericDao;
/**
 * Dao interface for AppRole.
 */
public interface AppRoleDao extends GenericDao<AppRole> {
	
	public List<AppRole> getRolesNotInIds(String roleIds);
    /**
     * test this role name has exist in the database.
     * @param roleName
     * @return
     */
    public boolean getIsRoleNameExist(String roleName);
    
    /**
     * get app role by role name.
     * @param roleName
     * @return
     */
    public AppRole getByRoleName(String roleName);
    
    public List<AppRole> listRoleTree(Short belongTo);

}